package com.albaba.designpattern.visitor.text_001;

import java.time.LocalDate;

/**
 * @Description: 抽象商品父类
 * @Author zx
 * @Date 2025/2/25 18:05
 * @Version 1.0
 */
public abstract class Product {

    private String name;

    private LocalDate produceDate;

    private double price;

    public Product(String name, LocalDate produceDate, double price) {
        this.name = name;
        this.produceDate = produceDate;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getProduceDate() {
        return produceDate;
    }

    public void setProduceDate(LocalDate produceDate) {
        this.produceDate = produceDate;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
